import React, { useContext } from 'react'
import Child3 from './Child3'
import ctx from '../context/context'
const Child2 = () => {
  const value = useContext(ctx)
  console.log(value)
  return (
    <div className='box'>
      <h3>Child2</h3>
      <p>count:{value.count}</p>
      <Child3 />
    </div>
  )
}

export default Child2